/*
 * Copyright 2020-2025 the original author or authors.
 * You cannot use this file unless authorized by the author.
 */

package org.ipig.constants;

/**
 * Result Status
 *
 * @author <a href="mailto:comchnts@163.com">chinats</a>
 * @version $$Id: ResultStatus.java 3 2020-01-21 09:36:33Z ts <comchnts@163.com> $$
 * @since 1.0
 */
public enum ResultStatus {
    /**
     * 成功
     */
    SUCCESS("0", "成功"),
    /**
     * 失败
     */
    FAILURE("1", "失败");
    /**
     * code
     */
    public final String code;
    /**
     * title
     */
    public final String title;

    /**
     * @return the value
     */
    public String getValue() {
        return code;
    }

    /**
     * @return the title
     */
    public String getTitle() {
        return title;
    }

    /**
     * @param code  String
     * @param title String
     */
    ResultStatus(String code, String title) {
        this.code = code;
        this.title = title;
    }
}
